package cn.sofwin.day0107.homework;

import java.util.Scanner;

public class Discount {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入会员积分");
        int score = sc.nextInt();
        double discount =0.0;

        if(score >=8000){
            discount = 0.6;
        }else if(score >=4000){
            discount = 0.7;
        }else if(score >=2000){
            discount = 0.8;
        }else if(score >=0 && score < 2000){
            discount = 0.9;
        }else {
            System.out.println("输入错误");
        }

        System.out.println("该会员享受的折扣是" + discount);
    }
}
